gdk: wayland: always set buffer scale on size update
authorLionel Landwerlin <llandwerlin@gmail.com>
Fri, 18 Aug 2017 22:57:56 +0000 (23:57 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Aug 2017 23:48:52 +0000 (19:48 -0400)
We're only updating this when we have an EGL window. This means we
have the wrong scaling factor when using Vulkan.

https://bugzilla.gnome.org/show_bug.cgi?id=786492

gdk/wayland/gdkwindow-wayland.c

index c304799619ec207a06424c496dc5cf1be5c70ff7..8af96e1bcc06170f265fbf075200cff0b35eb73e 100644 (file)
@@ -336,8 +336,8 @@ gdk_wayland_window_update_size (GdkWindow *window,
                             width * scale,
                             height * scale,
                             0, 0);
-      wl_surface_set_buffer_scale (impl->display_server.wl_surface, scale);
     }
+  wl_surface_set_buffer_scale (impl->display_server.wl_surface, scale);
 
   area.x = 0;
   area.y = 0;